package day2;

import java.util.Scanner;

public class ScoreStat {
    public static void main(String[] args) {
        //输入三门课的成绩，统计平均分，以及java和sql分数差
        Scanner sc=new Scanner(System.in);
        System.out.print("请输入java的成绩:");
        int javaScore=sc.nextInt();
        System.out.print("请输入sql成绩：");
        int sql=sc.nextInt();
        //String->sc.next()
        //double->sc.nextDouble()
        System.out.print("请输入python成绩：");
        int python=sc.nextInt();
        int avg=(javaScore+sql+python)/3;
        int diff=javaScore-sql;
        System.out.println("三门课平均分是："+avg);
        System.out.println("java和sql的分数差是："+diff);
    }
}
